package com.sxkiler.demo.rpc.pojo;

import java.io.Serializable;

public class Response implements Serializable {
    private Boolean isSuccess;

    private Object context;//返回具体数据

    private Class<?> contextType;//返回数据类型

    public Response(Boolean isSuccess, Object context,Class<?> contextType) {
        this.contextType = contextType;
        this.isSuccess = isSuccess;
        this.context = context;
    }

    public Response() {
    }

    public Boolean getSuccess() {
        return isSuccess;
    }

    public void setSuccess(Boolean success) {
        isSuccess = success;
    }

    public Object getContext() {
        return context;
    }

    public void setContext(Object context) {
        this.context = context;
    }

    public Class<?> getContextType() {
        return contextType;
    }

    public void setContextType(Class<?> contextType) {
        this.contextType = contextType;
    }
}
